        ArkUI_NodeHandle text = nodeAPI->createNode(ARKUI_NODE_TEXT);
        const char *content = "Text组件C接口StyledString";
        ArkUI_AttributeItem textContent = {.string = content};
        nodeAPI->setAttribute(text, NODE_TEXT_CONTENT, &textContent);
        float width = 300;
        ArkUI_NumberValue borderValue[] = {{.f32 = 2}};
        ArkUI_AttributeItem borderWidth = {.value = borderValue, .size = 1};
        nodeAPI->setAttribute(text, NODE_BORDER_WIDTH, &borderWidth);
        ArkUI_NumberValue widthValue[] = {{.f32 = width}};
        ArkUI_AttributeItem widthItem = {.value = widthValue, .size = 1};
        nodeAPI->setAttribute(text, NODE_WIDTH, &widthItem);

        ArkUI_NumberValue heightValue[] = {{.f32 = width}};
        ArkUI_AttributeItem heightItem = {.value = heightValue, .size = 1};
        nodeAPI->setAttribute(text, NODE_HEIGHT, &heightItem);

        ArkUI_NumberValue copyOptionValue[] = {{.i32 = 1}};
        ArkUI_AttributeItem copyOptionItem = {.value = copyOptionValue, .size = 1};
        nodeAPI->setAttribute(text, NODE_TEXT_COPY_OPTION, &copyOptionItem);

        OH_Drawing_TypographyStyle *typoStyle = OH_Drawing_CreateTypographyStyle();
        OH_Drawing_SetTypographyTextMaxLines(typoStyle, 5);

        OH_Drawing_TextStyle *txtStyle = OH_Drawing_CreateTextStyle();
        OH_Drawing_SetTextStyleFontSize(txtStyle, 50);
        OH_Drawing_SetTextStyleColor(txtStyle, 4278190080);
        OH_Drawing_SetTextStyleFontWeight(txtStyle, FONT_WEIGHT_400);
        OH_Drawing_SetTextStyleBaseLine(txtStyle, TEXT_BASELINE_ALPHABETIC);

        ArkUI_StyledString *styledString = OH_ArkUI_StyledString_Create(typoStyle, OH_Drawing_CreateFontCollection());
       
        OH_Drawing_TextStyle *txtStyle1 = OH_Drawing_CreateTextStyle();
        OH_Drawing_SetTextStyleFontSize(txtStyle1, 80);
        OH_Drawing_SetTextStyleColor(txtStyle1, 4278255360);
        OH_ArkUI_StyledString_PushTextStyle(styledString, txtStyle1);
        OH_ArkUI_StyledString_AddText(styledString, "哈哈哈哈哈");
        OH_ArkUI_StyledString_PopTextStyle(styledString);
    
        OH_Drawing_Typography *typography = OH_ArkUI_StyledString_CreateTypography(styledString);
        OH_Drawing_TypographyLayout(typography, width * 3.25);
        ArkUI_AttributeItem item = {.object = styledString};
        nodeAPI->setAttribute(text, NODE_TEXT_CONTENT_WITH_STYLED_STRING, &item);
        OH_Drawing_DestroyTextStyle(txtStyle);

        OH_NativeXComponent_AttachNativeRootNode(xComponent, text);

        